﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.MobileControls;

public partial class Examples_ListItemCommandExample : System.Web.UI.MobileControls.MobilePage
{
    protected void Page_Load(object sender, EventArgs e)
    {
        this.List1.ItemCommand += new ListCommandEventHandler(this.ClickTeamSelection);
    }
    private void ClickTeamSelection(
           Object source,
           ListCommandEventArgs args)
    {
        // Display the Stats page
        this.ActiveForm = Form2;
        String strSelectedTeamStats = args.ListItem.Value;
        Label4.Text = args.ListItem.Text
                        + ": " + strSelectedTeamStats;
    }
}